package com.top.ruizhong.main.notice

import com.blankj.utilcode.util.BarUtils
import com.module.lemlin.base.BaseAbstractFragment
import com.top.ruizhong.R
import kotlinx.android.synthetic.main.fragment_main_msg.*

class MainMsgFragment : BaseAbstractFragment() {


    companion object {
        fun newInstance(): MainMsgFragment {
            return MainMsgFragment()
        }
    }

    override val layoutResId: Int
        get() = R.layout.fragment_main_msg

    override fun initView() {
        BarUtils.addMarginTopEqualStatusBarHeight(frameMessageBar)

        //官方公告
        clMsgBulletinOfficial.setOnClickListener {
            MessageBulletinActivity.open(requireActivity(), "官方公告")
        }
        //系统消息
        clMsgBulletinSystem.setOnClickListener {
            MessageBulletinActivity.open(requireActivity(), "系统消息")
        }
        //互动消息
        clMsgMutual.setOnClickListener {
            MessageMutualActivity.open(requireActivity())
        }
    }

}